package com.ybkj.chat.module.mine.activity;

import android.os.Bundle;

import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpActivity;
import com.ybkj.chat.ui.adapter.BlackListAdapter;
import com.ybkj.chat.ui.view.recyclerview.DividerItemDecoration;
import com.ybkj.chat.ui.view.recyclerview.XRecyclerView;
import com.ybkj.chat.utils.ResourcesUtil;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * @author yyj
 * @create 2019-02-22 15:12
 * @Describe 黑名单
 */
public class BlackListActivity extends BaseMvpActivity {
    @BindView(R.id.rv_black_list)
    XRecyclerView rvBlackList;

    private BlackListAdapter blackListAdapter;

    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initTitle() {
        setTitleText("黑名单");
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_black_list;
    }

    @Override
    protected void initView() {
        rvBlackList.addItemDecoration(new DividerItemDecoration(mContext, DividerItemDecoration.VERTICAL_LIST, 1,
                ResourcesUtil.getColor(R.color.activity_background)));
        blackListAdapter = new BlackListAdapter(this);
        blackListAdapter.addData("1");
        blackListAdapter.addData("1");
        blackListAdapter.addData("1");
        blackListAdapter.addData("1");
        blackListAdapter.addData("1");
        rvBlackList.setAdapter(blackListAdapter);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
